﻿@model FCTC_Web.Models.Vehicle
@*<link href="@Url.Content("~/Content/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.5.1.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-timepicker-addon.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.datepicker-zh-CN.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>*@
@Combres.HtmlExtensions.CombresLink("backjs")
<script type="text/jscript">
    $(document).ready(function () {
        $('#EnrollmentDate').datepicker(
        { showMonthAfterYear: true,
            showOn: 'both',
            buttonImage: '/images/calendar.png',
            buttonImageOnly: true,
            dateFormat: 'yy-m-d '
        }, $.datepicker.regional['cn']);

    });
</script>
<style>
.ie6 img{ margin-left:5px; height:24px; width:50px; cursor:hand;}
</style>
@Html.ValidationSummary(true)
<fieldset>
    <legend>基本信息</legend>
    <table width="90%" style="background-color: #f6fdfd; margin-top: 20px;" align="center">
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.ShopID, "商家")：</span>
            </td>
            <td>
                <span class="headtitles">@Html.DropDownList("ShopID", "--请选择--")</span>
                @Html.ValidationMessageFor(model => model.ShopID)
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.ShopID, "评估师热卖推荐")：</span>
            </td>
            <td>
                <span class="headtitles">@Html.DropDownList("EstimatorID", "--请选择--")</span>
                @Html.ValidationMessageFor(model => model.EstimatorID)
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.EnrollmentDate)：</span>
            </td>
            <td>
                <span class="ie6">@Html.TextBoxFor(i => i.EnrollmentDate, new { id = "EnrollmentDate", @class = "EnrollmentDate" })</span>
                @Html.ValidationMessageFor(model => model.EnrollmentDate)
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Location)：</span>
            </td>
            <td>
                <span class="ie6">@Html.EditorFor(model => model.Location)</span>
                @Html.ValidationMessageFor(model => model.Location)
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Year)：</span>
            </td>
            <td>
                <span class="ie6">@Html.EditorFor(model => model.Year)</span>
                @Html.ValidationMessageFor(model => model.Year)
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Fuel)：</span>
            </td>
            <td>
                <span class="headtitles">@Html.DropDownListFor(model => model.Usage, new SelectList(new List<string>{  
                       "汽油", 
                       "柴油", 
                       "电力",
                       "其他"}), "--请选择--")</span>
                @Html.ValidationMessageFor(model => model.Fuel)
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.CarBrand)：</span>
            </td>
            <td>
                <span class="headtitles">@Html.Partial(@"~\views\shared\searchengine\vehiclebrand.cshtml")</span>
                @Html.ValidationMessageFor(model => model.CarBrand)
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.BrandType)：</span>
            </td>
            <td>
                <span class="headtitles" id="divBrandType">@Html.Partial(@"~\views\shared\searchengine\vehicletype.cshtml")</span>
                @Html.ValidationMessageFor(model => model.BrandType)
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.VehicleStyle)：</span>
            </td>
            <td>
                <span class="headtitles" id="divVehicleStyle">@Html.Partial(@"~\views\shared\searchengine\vehiclestyle.cshtml")</span>
                @Html.ValidationMessageFor(model => model.VehicleStyle)
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.OriginalPrize)</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.OriginalPrize)
                    @Html.ValidationMessageFor(model => model.OriginalPrize)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.AssuranceExpxired)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.AssuranceExpxired)
                    @Html.ValidationMessageFor(model => model.AssuranceExpxired)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.CheckExpxired)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.CheckExpxired)
                    @Html.ValidationMessageFor(model => model.CheckExpxired)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Prize)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.Prize)
                    @Html.ValidationMessageFor(model => model.Prize)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.DeliveryCapacity)：</span>
            </td>
            <td>
                <span class="headtitles">
                    @Html.DropDownListFor(model => model.DeliveryCapacity, new SelectList(new List<string>{  
                            "0.8",
                            "1.0",
                            "1.1",
                            "1.2",
                            "1.3",
                            "1.4",
                            "1.5",
                            "1.6",
                            "1.8",
                            "1.T",
                            "2.0",
                            "2.0T",
                            "2.2",
                            "2.3",
                            "2.4",
                            "2.5",
                            "2.7",
                            "2.8",
                            "3.0",
                            "3.0",
                            "3.2",
                            "3.6",
                            "4.0",
                            "4.2",
                            "4.6",
                            "5.0",
                            "6.0"}, "--请选择--"))

                    @Html.ValidationMessageFor(model => model.DeliveryCapacity)
                    @Html.ValidationMessageFor(model => model.DeliveryCapacity)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Color)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.Color)
                    @Html.ValidationMessageFor(model => model.Color)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.FullName)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.FullName)
                    @Html.ValidationMessageFor(model => model.FullName)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">用车体验：</span>
            </td>
            <td >
                <span class="txt">
                    @Html.TextAreaFor(model => model.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">车主附言：</span>
            </td>
            <td colspan="3">
                <span  class="headtitles">
                     @Html.TextAreaFor(model => model.Title)
                    @Html.ValidationMessageFor(model => model.Title)
                </span>
            </td>
        </tr>
        <tr>
         <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Category)：</span>
            </td>
         <td colspan="3">
                <span  class="headtitles">
                    @Html.DropDownListFor(model => model.Category, new SelectList(new List<string>{  
                            "轿车", "客车", "越野车", "商务车"}), "--请选择--")
                    @Html.ValidationMessageFor(model => model.Category)
                </span>
            </td>
        </tr>
    </table>
</fieldset>
<fieldset>
    <legend>配置参数</legend>
    <table width="90%" style="background-color: #f6fdfd; margin-top: 20px;" align="center">
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Gears)：</span>
            </td>
            <td>
                <span class="headtitles">
                    @Html.DropDownListFor(model => model.Gears, new SelectList(new List<string>{  
                      "手动档", 
                       "自动档", 
                       "手自一体"}), "--请选择--")
                    @Html.ValidationMessageFor(model => model.Gears)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.SteeringGear)：</span>
            </td>
            <td>
                <span class="headtitles">
                    @Html.DropDownListFor(model => model.SteeringGear, new SelectList(new List<string>{  
                      "机械转向", 
                      "电子液压转向", 
                      "电动助力转向"}), "--请选择--")
                    @Html.ValidationMessageFor(model => model.Gears)
                    @Html.ValidationMessageFor(model => model.SteeringGear)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.HasAPS)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.HasAPS)
                    @Html.ValidationMessageFor(model => model.HasAPS)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.HasGPS)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.HasGPS)
                    @Html.ValidationMessageFor(model => model.HasGPS)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.HasSeat)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.HasSeat)
                    @Html.ValidationMessageFor(model => model.HasSeat)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.HasRadar)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.HasRadar)
                    @Html.ValidationMessageFor(model => model.HasRadar)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.ABS)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.ABS)
                    @Html.ValidationMessageFor(model => model.ABS)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.EBD)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.EBD)
                    @Html.ValidationMessageFor(model => model.EBD)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.TCS)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.TCS)
                    @Html.ValidationMessageFor(model => model.TCS)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.ESP)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.ESP)
                    @Html.ValidationMessageFor(model => model.ESP)
                </span>
            </td>
        </tr>
    </table>
</fieldset>
<fieldset>
    <legend>车况</legend>
    <table width="90%" style="background-color: #f6fdfd; margin-top: 20px;" align="center">
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Usage)：</span>
            </td>
            <td>
                <span class="headtitles">
                    @Html.DropDownListFor(model => model.Usage, new SelectList(new List<string>{  
                      "营运", 
                       "私用", 
                       "客运",
                       "公务"}), "--请选择--")
                    @Html.ValidationMessageFor(model => model.Usage)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Miles)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.Miles)
                    @Html.ValidationMessageFor(model => model.Miles)
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.VehicleAge)：</span>
            </td>
            <td colspan="3">
                <span class="ie6">
                    @Html.EditorFor(model => model.VehicleAge)
                    @Html.ValidationMessageFor(model => model.VehicleAge)
                </span>
            </td>
        </tr>
    </table>
</fieldset>
<fieldset>
    <legend>其他</legend>
    <table width="90%" style="background-color: #f6fdfd; margin-top: 20px;" align="center">
        <tr>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.VehicleStatus)：</span>
            </td>
            <td>
                <span class="headtitles">
                    @Html.DropDownListFor(model => model.VehicleStatus, new SelectList(new List<string>{  
                       "客户撤销", 
                       "已售卖", 
                       "评估中",
                       "下架",
                       "热卖",
                       "其他"}), "--请选择--")
                    @Html.ValidationMessageFor(model => model.VehicleStatus)
                </span>
            </td>
            <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.Sequense)：</span>
            </td>
            <td>
                <span class="ie6">
                    @Html.EditorFor(model => model.Sequense)
                    @Html.ValidationMessageFor(model => model.Sequense)
                </span>
            </td>
        </tr>
        <tr>
          <td style="width: 150px; text-align: right;">
                <span class="headtitle">@Html.LabelFor(model => model.SpecialOffer)：</span>
            </td>
            <td>
                <span class="ie6"">
                    @Html.EditorFor(model => model.SpecialOffer)
                    @Html.ValidationMessageFor(model => model.SpecialOffer)
                </span>
            </td>
        </tr>
    </table>
</fieldset>
<p>
    <input type="submit" value="保存" />
</p>
<div>
    @Html.ActionLink("回到列表", "Index")
</div>
